package com.fuqiang.nightshopumsmodel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description:积分变化历史记录表
 * @author fuqiang
 * @since 2020-04-14
 */
@ApiModel(value ="积分变化历史记录表")
@Data
    @EqualsAndHashCode(callSuper = false)
@TableName("ums_integration_change_history")
public class UmsIntegrationChangeHistory implements Serializable {

private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("member_id")
private Long memberId;
    @TableField("create_time")
private LocalDateTime createTime;
    @ApiModelProperty(value = "改变类型：0->增加；1->减少")
    @TableField("change_type")
private Integer changeType;
    @ApiModelProperty(value = "积分改变数量")
    @TableField("change_count")
private Integer changeCount;
    @ApiModelProperty(value = "操作人员")
    @TableField("operate_man")
private String operateMan;
    @ApiModelProperty(value = "操作备注")
    @TableField("operate_note")
private String operateNote;
    @ApiModelProperty(value = "积分来源：0->购物；1->管理员修改")
    @TableField("source_type")
private Integer sourceType;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String CREATE_TIME = "create_time";

    public static final String CHANGE_TYPE = "change_type";

    public static final String CHANGE_COUNT = "change_count";

    public static final String OPERATE_MAN = "operate_man";

    public static final String OPERATE_NOTE = "operate_note";

    public static final String SOURCE_TYPE = "source_type";

        }
